package com.fc.v2.model.auto;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import java.util.Date;

public class SysUser implements Serializable {
    private static final long serialVersionUID = 1L;

	
	@ApiModelProperty(value = "主键")
	private String id;
	
	@ApiModelProperty(value = "用户账号")
	private String username;
	
	@ApiModelProperty(value = "用户密码")
	private String password;
	
	@ApiModelProperty(value = "昵称")
	private String nickname;
	
	@ApiModelProperty(value = "部门id")
	private Integer depId;
	
	@ApiModelProperty(value = "岗位id")
	private String posId;
	
	@ApiModelProperty(value = "民族")
	private String userNation;
	
	@ApiModelProperty(value = "性别")
	private Integer userSex;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "生日")
	private Date userBirth;
	
	@ApiModelProperty(value = "类型")
	private String userType;
	
	@ApiModelProperty(value = "专业职称")
	private String userTitle;
	
	@ApiModelProperty(value = "专长")
	private String userExpertise;
	
	@ApiModelProperty(value = "学历")
	private String userEducation;
	
	@ApiModelProperty(value = "学位")
	private String userAcademicDegree;
	
	@ApiModelProperty(value = "地址")
	private String userAddress;
	
	@ApiModelProperty(value = "电话")
	private Integer userPhone;
	
	@ApiModelProperty(value = "银行卡")
	private Integer userBankCard;
	
	@ApiModelProperty(value = "开户行")
	private String userBankAddress;
	
	@ApiModelProperty(value = "邮编")
	private Integer userZip;
	
	@ApiModelProperty(value = "工作量")
	private Integer userWork;
	
	@ApiModelProperty(value = "专家费")
	private Integer userCost;
	
	@ApiModelProperty(value = "状态")
	private Integer userCondition;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "更新时间")
	private Date updateTime;
	
	@ApiModelProperty(value = "进度")
	private Integer userProcess;
	
	@ApiModelProperty(value = "职务")
	private String userOffice;
	
	@ApiModelProperty(value = "承担单位")
	private String deptName;
	
	@JsonProperty("id")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id =  id;
	}
	@JsonProperty("username")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username =  username;
	}
	@JsonProperty("password")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password =  password;
	}
	@JsonProperty("nickname")
	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname =  nickname;
	}
	@JsonProperty("depId")
	public Integer getDepId() {
		return depId;
	}

	public void setDepId(Integer depId) {
		this.depId =  depId;
	}
	@JsonProperty("posId")
	public String getPosId() {
		return posId;
	}

	public void setPosId(String posId) {
		this.posId =  posId;
	}
	@JsonProperty("userNation")
	public String getUserNation() {
		return userNation;
	}

	public void setUserNation(String userNation) {
		this.userNation =  userNation;
	}
	@JsonProperty("userSex")
	public Integer getUserSex() {
		return userSex;
	}

	public void setUserSex(Integer userSex) {
		this.userSex =  userSex;
	}
	@JsonProperty("userBirth")
	public Date getUserBirth() {
		return userBirth;
	}

	public void setUserBirth(Date userBirth) {
		this.userBirth =  userBirth;
	}
	@JsonProperty("userType")
	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType =  userType;
	}
	@JsonProperty("userTitle")
	public String getUserTitle() {
		return userTitle;
	}

	public void setUserTitle(String userTitle) {
		this.userTitle =  userTitle;
	}
	@JsonProperty("userExpertise")
	public String getUserExpertise() {
		return userExpertise;
	}

	public void setUserExpertise(String userExpertise) {
		this.userExpertise =  userExpertise;
	}
	@JsonProperty("userEducation")
	public String getUserEducation() {
		return userEducation;
	}

	public void setUserEducation(String userEducation) {
		this.userEducation =  userEducation;
	}
	@JsonProperty("userAcademicDegree")
	public String getUserAcademicDegree() {
		return userAcademicDegree;
	}

	public void setUserAcademicDegree(String userAcademicDegree) {
		this.userAcademicDegree =  userAcademicDegree;
	}
	@JsonProperty("userAddress")
	public String getUserAddress() {
		return userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress =  userAddress;
	}
	@JsonProperty("userPhone")
	public Integer getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(Integer userPhone) {
		this.userPhone =  userPhone;
	}
	@JsonProperty("userBankCard")
	public Integer getUserBankCard() {
		return userBankCard;
	}

	public void setUserBankCard(Integer userBankCard) {
		this.userBankCard =  userBankCard;
	}
	@JsonProperty("userBankAddress")
	public String getUserBankAddress() {
		return userBankAddress;
	}

	public void setUserBankAddress(String userBankAddress) {
		this.userBankAddress =  userBankAddress;
	}
	@JsonProperty("userZip")
	public Integer getUserZip() {
		return userZip;
	}

	public void setUserZip(Integer userZip) {
		this.userZip =  userZip;
	}
	@JsonProperty("userWork")
	public Integer getUserWork() {
		return userWork;
	}

	public void setUserWork(Integer userWork) {
		this.userWork =  userWork;
	}
	@JsonProperty("userCost")
	public Integer getUserCost() {
		return userCost;
	}

	public void setUserCost(Integer userCost) {
		this.userCost =  userCost;
	}
	@JsonProperty("userCondition")
	public Integer getUserCondition() {
		return userCondition;
	}

	public void setUserCondition(Integer userCondition) {
		this.userCondition =  userCondition;
	}
	@JsonProperty("updateTime")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime =  updateTime;
	}
	@JsonProperty("userProcess")
	public Integer getUserProcess() {
		return userProcess;
	}

	public void setUserProcess(Integer userProcess) {
		this.userProcess =  userProcess;
	}
	@JsonProperty("userOffice")
	public String getUserOffice() {
		return userOffice;
	}

	public void setUserOffice(String userOffice) {
		this.userOffice =  userOffice;
	}
	@JsonProperty("deptName")
	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName =  deptName;
	}

																																																				
	public SysUser(String id,String username,String password,String nickname,Integer depId,String posId,String userNation,Integer userSex,Date userBirth,String userType,String userTitle,String userExpertise,String userEducation,String userAcademicDegree,String userAddress,Integer userPhone,Integer userBankCard,String userBankAddress,Integer userZip,Integer userWork,Integer userCost,Integer userCondition,Date updateTime,Integer userProcess,String userOffice,String deptName) {
				
		this.id = id;
				
		this.username = username;
				
		this.password = password;
				
		this.nickname = nickname;
				
		this.depId = depId;
				
		this.posId = posId;
				
		this.userNation = userNation;
				
		this.userSex = userSex;
				
		this.userBirth = userBirth;
				
		this.userType = userType;
				
		this.userTitle = userTitle;
				
		this.userExpertise = userExpertise;
				
		this.userEducation = userEducation;
				
		this.userAcademicDegree = userAcademicDegree;
				
		this.userAddress = userAddress;
				
		this.userPhone = userPhone;
				
		this.userBankCard = userBankCard;
				
		this.userBankAddress = userBankAddress;
				
		this.userZip = userZip;
				
		this.userWork = userWork;
				
		this.userCost = userCost;
				
		this.userCondition = userCondition;
				
		this.updateTime = updateTime;
				
		this.userProcess = userProcess;
				
		this.userOffice = userOffice;
				
		this.deptName = deptName;
				
	}

	public SysUser() {
	    super();
	}

	public String dateToStringConvert(Date date) {
		if(date!=null) {
			return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
		}
		return "";
	}
	

}